#include<unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include<iostream>
#include<errno.h>
#include<string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include"comm.hpp"
using namespace std;

int main()
{
    int fd = open(pathname,O_WRONLY);
    if(fd < 0)
    {
        cout << "open file fasle" << endl;
        exit(1);
    }
    char buff[] = "i am client proccess";
    int cnt = 10;
    while(cnt--)
    {
        write(fd,buff,sizeof(buff)-1);
        cout << "client write,"<<"cnt : "<< cnt <<endl; 
        sleep(1);
    }

    close(fd);
    return 0;
}
